package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HServiceOrder;
import com.flea.hclv.model.entity.vo.HVisitorOderQueryVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface HServiceOrderMapper {
    int deleteByPrimaryKey(String id);

    int insert(HServiceOrder record);

    int insertSelective(HServiceOrder record);

    HServiceOrder selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HServiceOrder record) throws  Exception;

    int updateByPrimaryKey(HServiceOrder record);

	List<HServiceOrder> findByOrgIdAndSatusAndOrderNoForSale(RowBounds rowBounds,@Param("orgId")String orgId,@Param("vo")HVisitorOderQueryVo vo) throws Exception;

	HServiceOrder findByOrderNo(@Param("orderNo")String orderNo);
	HServiceOrder findByGroupId(@Param("groupId")String groupId) throws Exception;

  List<HServiceOrder> findByOrgIdAndSatusAndOrderNoForBuy(RowBounds rowBounds,@Param("orgId")String orgId,@Param("vo")HVisitorOderQueryVo vo) throws Exception;

  List<HServiceOrder> findByTimeTableId(@Param("timeTableId")String timeTableId, RowBounds bounds);

  List<HServiceOrder> findByTimeTableIdToList(@Param("timeTableId")String timeTableId);
}